package com.naiterui.ehp.bs.doctor.controller;

import com.naiterui.ehp.bp.constants.SwaggerTag;
import com.naiterui.ehp.bp.support.exception.PublicService;
import com.naiterui.ehp.bp.support.exception.ResponseVO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <pre>
 *
 * </pre>
 *
 * @author 王泽浩
 * @date 2018/7/2 下午4:09
 * @since 1.0.0
 */
@Api(tags = {SwaggerTag.DOCTOR + SwaggerTag.BASIC_INFO})
@RestController
@RequestMapping("ad")
public class AdTimeContorller {

    /**
     * 获取时间戳
     *
     * @return
     */
    @RequestMapping("/time.jsp")
    public ResponseVO<Long> time() {
        return PublicService.returnResponseVO(System.currentTimeMillis());
    }
}
